package com.hfut.jpoa.service;

import java.util.List;

import com.hfut.jpoa.common.dto.ResultDto;
import com.hfut.jpoa.dto.CustomerDTO;
import com.hfut.jpoa.model.Customer;
import com.hfut.jpoa.service.exception.CustomerException;
import com.hfut.jpoa.service.exception.UserException;

public interface CustomerService
{

	/**
	 * 加载客户信息列表
	 * 
	 * @param user
	 * @return
	 * @throws UserException
	 */
	public List<Customer> queryCustomers(Customer customer)
	        throws CustomerException;

	/**
	 * 加载客户信息分页列表
	 * 
	 * @param dto
	 * @return
	 * @throws CustomerException
	 */
	public ResultDto<Customer> queryInfoForPage(CustomerDTO dto)
	        throws CustomerException;

	/**
	 * 新增 客户信息
	 * 
	 * @throws CustomerException
	 */
	public void saveCustomer(Customer customer) throws CustomerException;

	/**
	 * 修改客户信息
	 * 
	 * @param customer
	 * @throws CustomerException
	 */
	public void updateCustomer(Customer customer) throws CustomerException;

	/**
	 * 查看客户信息
	 * @param customer
	 * @return
	 */
	public Customer findCustomer(Customer customer) throws CustomerException;

}
